import 'package:flutter/material.dart';

void main() {
  runApp(new MaterialApp(
    home: Scaffold(
      appBar: AppBar(
        title: Text("DecoratedBox配置说明"),
      ),
      body: Center(
        child: DecoratedBox(
          position: DecorationPosition.background,
          decoration: BoxDecoration(boxShadow: <BoxShadow>[
            BoxShadow(color: Colors.green, blurRadius: 10, spreadRadius: 10)
          ], shape: BoxShape.circle),
          child: ConstrainedBox(
            constraints: BoxConstraints(maxHeight: 200, maxWidth: 200),
            child: Container(
              color: Colors.pink,
              width: 100,
              height: 100,
            ),
          ),
        ),
      ),
    ),
  ));
}
